package com.bymboy.emos.wx.controller.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Package: com.bymboy.emos.wx.controller.form
 * @ClassName: SearchMessageByPageForm
 * @Author: My
 * @CreateTime: 2021/10/5 14:33
 * @Description:
 */
@Data
@ApiModel
public class SearchMessageByPageForm {

    @NotNull
    @Min(1)
    private Integer page;

    @NotNull
    @Range(min = 1, max = 40)
    private Integer length;
}
